<template>
  <div>
    <h1>A : {{ countStore.count }}</h1>
    <button @click="countStore.increase">点击加一</button>
    <button @click="countStore.increaseN(5)">点击加N(自己传参)</button>
    <button @click="countStore.increaseNWait(10)">
      点击一秒后加N(自己传参)
    </button>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "A",
});
</script>

<script setup lang="ts">
import useCountStore from "../store/modules/count";
const countStore = useCountStore();
</script>

<style  scoped >
</style>